// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '物流领取',
        name: 'Material',
        url: "/Material/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"MaterialCode":"","Batch":"","Quantity":"","Materialunit":"","Materialname":"","Warehouse":"","Placesbond":"","UpdatedateTime":""};
    const editFormOptions = [[{"title":"物料编码","required":true,"field":"MaterialCode","type":"text"}],
                              [{"title":"批次","required":true,"field":"Batch","type":"text"}],
                              [{"title":"数量","required":true,"field":"Quantity","type":"text"}],
                              [{"title":"物料单位","required":true,"field":"Materialunit","type":"text"}],
                              [{"title":"领料人","required":true,"field":"Materialname","type":"text"}],
                              [{"title":"出库仓","required":true,"field":"Warehouse","type":"text"}],
                              [{"title":"入库仓","required":true,"field":"Placesbond","type":"text"}],
                              [{"title":"更新时间","required":true,"field":"UpdatedateTime","type":"datetime"}]];
    const searchFormFields = {"Materialunit":""};
    const searchFormOptions = [[{"title":"物料单位","field":"Materialunit","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'MaterialCode',title:'物料编码',type:'string',width:110,require:true,align:'left'},
                       {field:'Batch',title:'批次',type:'int',width:110,require:true,align:'left'},
                       {field:'Quantity',title:'数量',type:'int',width:110,require:true,align:'left'},
                       {field:'Materialunit',title:'物料单位',type:'string',width:110,require:true,align:'left'},
                       {field:'Materialname',title:'领料人',type:'string',width:110,require:true,align:'left'},
                       {field:'Warehouse',title:'出库仓',type:'string',width:110,require:true,align:'left'},
                       {field:'Placesbond',title:'入库仓',type:'string',width:110,require:true,align:'left'},
                       {field:'UpdatedateTime',title:'更新时间',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}